<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"></meta>
    <meta http-equiv="Expires" content="0"></meta>
    <meta http-equiv="Cache-Control" content="no-cache"></meta>
    <meta http-equiv="Cache-Control" content="no-store"></meta>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"></meta>
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<title>GGKB | Entity</title>
	<link rel="shortcut icon" href="favicon.ico">
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
	<link rel="stylesheet" th:href="@{/css/font-awesome.min.css}">
	<link rel="stylesheet" th:href="@{/css/ionicons.min.css}">
	<link rel="stylesheet" th:href="@{/css/plugins/layer/theme/default/layer.css}">
	<link rel="stylesheet" th:href="@{/css/entity.css}">
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
		<div class="ibox">
			<div class="ibox-content">
				<form class="form-horizontal m-t" id="signupForm">
					<div class="form-group">
	                    <label class="col-sm-3 control-label">所属机构：</label>
	                    <div class="col-sm-8">
	                        <input id="officeId" name="officeId" class="hidden" >
	                        <input id="officeName" name="officeName" onclick="openOffice()" class="form-control" type="text" style="cursor: pointer;" readonly="readonly" placeholder="所属机构">
	                    </div>
	                </div>
	                <div class="form-group">
	                    <label class="col-sm-3 control-label">姓名：</label>
	                    <div class="col-sm-8">
	                        <input id="name" name="name" class="form-control" type="text">
	                    </div>
	                </div>					
	                <div class="form-group">
	                    <label class="col-sm-3 control-label">登录名：</label>
	                    <div class="col-sm-8">
	                        <input id="loginName" name="loginName" class="form-control" type="text">
	                    </div>
	                </div>
	                <div class="form-group">
	                    <label class="col-sm-3 control-label">工号：</label>
	                    <div class="col-sm-8">
	                        <input id="no" name="no" class="form-control" type="text">
	                    </div>
	                </div>
					<div class="form-group">
	                    <label class="col-sm-3 control-label">性别：</label>
	                    <div class="col-sm-8">
	                        <label class="radio-inline"><input type="radio" name="gender" value="0" />男</label>
	                        <label class="radio-inline"><input type="radio" name="gender" value="1" />女</label>
	                    </div>
	                </div>	 	                
					<div class="form-group">
	                    <label class="col-sm-3 control-label">状态：</label>
	                    <div class="col-sm-8">
	                        <label class="radio-inline"><input type="radio" name="status" value="0" />可用</label>
	                        <label class="radio-inline"><input type="radio" name="status" value="1" />不可用</label>
	                    </div>
	                </div>	 	                
	                <div class="form-group">
	                    <label class="col-sm-3 control-label">邮箱：</label>
	                    <div class="col-sm-8">
	                        <input id="email" name="email" class="form-control" type="text">
	                    </div>
	                </div>
	                <div class="form-group">
	                    <label class="col-sm-3 control-label">手机：</label>
	                    <div class="col-sm-8">
	                        <input id="mobile" name="mobile" class="form-control" type="text">
	                    </div>
	                </div>
	                <div class="form-group">
	                    <label class="col-sm-3 control-label">密码：</label>
	                    <div class="col-sm-8">
	                        <input id="password" name="password" class="form-control" type="password">
	                    </div>
	                </div>
					<div class="form-group">
	                    <label class="col-sm-3 control-label">用户类型：</label>
	                    <div class="col-sm-8">
	                        <label class="radio-inline"><input type="radio" name="userType" value="0" onclick="return false"/>app</label>
	                        <label class="radio-inline"><input type="radio" name="userType" value="1" onclick="return false" checked/>pc</label>
	                    </div>
	                </div>	 	 
					<input type="hidden" name="roleIds" id="roleIds">
					<div class="form-group">
						<label class="col-sm-3 control-label">角色：</label>
						<div class="col-sm-8">
							<label th:each="role:${roles}" class="checkbox-inline">
								<input name="role" type="checkbox" th:value="${role.id}" th:text="${role.name}">
							</label>
						</div>
					</div>	                
	                <div class="form-group">
	                    <div class="col-sm-8 col-sm-offset-3">
	                        <button type="submit" class="btn btn-primary">提交</button>
	                    </div>
	                </div>				
				</form>
			</div>
		</div>
	</div>
	<script th:src="@{/js/jquery.min.js}"></script>
	<script th:src="@{/js/bootstrap.min.js}"></script>
	<script th:inline="javascript">var ctx = [[@{/}]];</script>
	<script th:src="@{/js/plugins/layer/layer.js}"></script>
	<script th:src="@{/js/plugins/validate/jquery.validate.min.js}"></script>
	<script th:src="@{/js/plugins/validate/messages_zh.min.js}"></script>
	<script th:src="@{/js/appjs/system/user/add.js}"></script>
</body>
</html>